﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
    class SubscriptEvenNumber
    {
        public static void Demo01()
        {
            Console.WriteLine("存入的五个字符串分别为:" + "aa01"+",bb02"+",cc03"+ ",dd04"+ ",ee05");
            string[] strs = { "aa01", "bb02", "cc03", "dd04", "ee05" };
            Console.WriteLine("数组中下标是偶数的元素如下列所示为: ");
            for (int i = 0; i < strs.Length; i = i + 2)
            {
                Console.WriteLine(strs[i]);
            }

        }
    }
}
